<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@ taglib
	uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    
    <head>
        <title>新增课程</title>
        <!-- Bootstrap -->
        <link href="${pageContext.request.contextPath }/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="${pageContext.request.contextPath }/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
        <link href="${pageContext.request.contextPath }/assets/styles.css" rel="stylesheet" media="screen">
        <script src="${pageContext.request.contextPath }/vendors/modernizr-2.6.2-respond-1.1.0.min.js"></script>
        
        <link href="${pageContext.request.contextPath }/vendors/datepicker.css" rel="stylesheet" media="screen">
        <link href="${pageContext.request.contextPath }/vendors/uniform.default.css" rel="stylesheet" media="screen">
        <link href="${pageContext.request.contextPath }/vendors/chosen.min.css" rel="stylesheet" media="screen">

        <link href="${pageContext.request.contextPath }/vendors/wysiwyg/bootstrap-wysihtml5.css" rel="stylesheet" media="screen">
        
        <script src="${pageContext.request.contextPath }/vendors/jquery-1.9.1.js"></script>
        <script>
        $(function() {
            var now = new Date();
			var year = now.getFullYear();
			var month = now.getMonth();
			if(month > 1 && month < 7){
			    month = 6;
			}else if((month > 6 && month < 13) || (month > 0 || month < 2)){
			    month = 2;
			}
			$('#startTime').val(year + "-" + month + "-01 " + "20:00:00");
			$('#endTime').val(year + "-" + month + "-02 " + "20:00:00");

        });
        </script>
    </head>
    
    <body>
        	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="#">选课系统</a>
				<div class="nav-collapse collapse">
					<ul class="nav pull-right">
						<li class="dropdown"><a href="#" role="button"
							class="dropdown-toggle" data-toggle="dropdown"> <i
								class="icon-user"> </i>${sessionScope.teacher.academy.name }
								${sessionScope.teacher.name }<i class="caret"></i>

						</a>
							<ul class="dropdown-menu">
								<li><a tabindex="-1" href="user_logout.action?id=1">退出</a></li>
							</ul></li>
					</ul>
					<ul class="nav">
						<li class="active"><a>新增课程</a></li>
						<li class="dropdown">
						    <a  class="dropdown-toggle" href="#" data-toggle="dropdown">查看全部课程</a>
							<ul class="dropdown-menu" id="menu1">
								<li><a href="teacher_checkAll.action?id=1">查看全部课程</a>
								</li>
						    </ul>
						</li>
						<li class="dropdown"><a  class="dropdown-toggle" href="#" data-toggle="dropdown">新增课程</a>
							<ul class="dropdown-menu" id="menu1">
								<li><a href="teacher_addCourse.action?id=1">新增课程</a>
								</li>
						    </ul>
						</li>
					</ul>
				</div>
				<!--/.nav-collapse -->
			</div>
		</div>
	</div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span3" id="sidebar">
                    <ul class="nav nav-list bs-docs-sidenav nav-collapse collapse">
                        <li class="active">
                            <a href="teacher_checkAll.action?id=1">查看全部课程</a>
                        </li>
                        <c:forEach var="course" items="${sessionScope.teacher.courses }">
                            <li>
                                <a href="teacher_checkCourse.action?cid=${course.id }"><i class="icon-chevron-right"></i>${course.name }</a>
                            </li>
                        </c:forEach>
                        <li class="active">
                            <a href="teacher_addCourse.action?id=1"><i class="icon-chevron-right"></i>新增课程</a>
                        </li>
                    </ul>
                </div>
                <!--/span-->
                <div class="span9" id="content">
                      <!-- morris stacked chart -->

                     <!-- validation -->
                    <div class="row-fluid">
                         <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <div class="muted pull-left">新增课程信息</div>
                            </div>
                            <div class="block-content collapse in">
                    <div class="span12">
					<!-- BEGIN FORM-->
					<form action="teacher_insertCourse.action" id="form_sample_1" class="form-horizontal">
						<fieldset>
  							<div class="control-group">
  								<label class="control-label">课程名<span style="color:red" class="required">*</span></label>
  								<div class="controls">
  									<input type="text" name="name" data-required="1" class="span6 m-wrap"/>
  								</div>
  							</div>
  							<div class="control-group">
  								<label class="control-label">课程类型<span style="color:red" class="required">*</span></label>
  								<div class="controls">
  									<select name="type" class="span6 m-wrap" name="category">
  										<option value="必修">必修</option>
  										<option value="专选">专选</option>
  										<option value="公选">公选</option>
  										<option value="体育任选">体育任选</option>
  									</select>
  								</div>
  							</div>
  							<div class="control-group">
  								<label class="control-label">课程学分<span style="color:red" class="required">*</span></label>
  								<div class="controls">
  									<select name="score" class="span6 m-wrap" name="category">
  										<option value="1">1</option>
  										<option value="2">2</option>
  										<option value="3">3</option>
  									</select>
  								</div>
  							</div>
  							<div class="control-group">
  								<label class="control-label">上课人数</label>
  								<div class="controls">
  									<input name="sum" type="text" class="span6 m-wrap" placeholder="人数不确定可不填此项" />
  								</div>
  							</div>
  							<div class="control-group">
  								<label class="control-label">选课开始时间<span style="color:red" class="required">*</span></label>
  								<div class="controls">
  									<input id="startTime" name="startTime" type="text" class="span6 m-wrap" disabled="disabled" />
  								</div>
  							</div>
  							<div class="control-group">
  								<label class="control-label">选课结束时间<span style="color:red" class="required">*</span></label>
  								<div class="controls">
  									<input id="endTime" name="endTime" type="text" class="span6 m-wrap" disabled="disabled" />
  								</div>
  							</div>
  							<div class="form-actions">
  								<input type="submit" class="btn btn-primary" value="提交" />
  								<button type="button" class="btn">取消</button>
  							</div>
						</fieldset>
					</form>
					<!-- END FORM-->
				</div>
			    </div>
			</div>
                     	<!-- /block -->
		    </div>
                     <!-- /validation -->


                </div>
            </div>
            <hr>
            <footer>
            </footer>
        </div>
        <!--/.fluid-container-->
        <script src="${pageContext.request.contextPath }/bootstrap/js/bootstrap.min.js"></script>
        <script src="${pageContext.request.contextPath }/vendors/jquery.uniform.min.js"></script>
        <script src="${pageContext.request.contextPath }/vendors/chosen.jquery.min.js"></script>
        <script src="${pageContext.request.contextPath }/vendors/bootstrap-datepicker.js"></script>

        <script src="${pageContext.request.contextPath }/vendors/wysiwyg/wysihtml5-0.3.0.js"></script>
        <script src="${pageContext.request.contextPath }/vendors/wysiwyg/bootstrap-wysihtml5.js"></script>

        <script src="${pageContext.request.contextPath }/vendors/wizard/jquery.bootstrap.wizard.min.js"></script>

	<script type="text/javascript" src="${pageContext.request.contextPath }/vendors/jquery-validation/dist/jquery.validate.min.js"></script>
	<script src="${pageContext.request.contextPath }/assets/form-validation.js"></script>
        
	<script src="${pageContext.request.contextPath }/assets/scripts.js"></script>

    </body>

</html>